export const useLocation = () => {
	const getLocation = (options) => {
		return new Promise((resolve, reject) => {
			uni.getLocation({
				type: 'gcj02',
				accuracy: 1,
				success: (res) => {
					resolve(res)
				},
				fail: (err) => {
					reject(err)
				},
				...options
			});
		})
	}

	return {
		getLocation
	}
}